import request from '@/utils/request'

// 反审核
export function purCheckUnAudit(data) {
  return request({
    url: '/tPurCheckout/purCheckUnAudit',
    method: 'post',
    data
  })
}
// 审核
export function purMrbAudit(data) {
  return request({
    url: '/tPurCheckout/purCheckAudit',
    method: 'post',
    data
  })
}
// 反提交
export function purCheckAuSubmit(data) {
  return request({
    url: '/tPurCheckout/purCheckAuSubmit',
    method: 'post',
    data
  })
}
// 提交
export function purCheckSubmit(data) {
  return request({
    url: '/tPurCheckout/purCheckSubmit',
    method: 'post',
    data
  })
}
// 删除
export function purCheckDelete(data) {
  return request({
    url: '/tPurCheckout/purCheckDelete',
    method: 'post',
    data
  })
}
// 列表
export function queryPurCheckList(data) {
  return request({
    url: '/tPurCheckout/queryPurCheckList',
    method: 'post',
    data
  })
}
// 详情
export function queryPurCheckDetails(params) {
  return request({
    url: '/tPurCheckout/queryPurCheckDetails',
    method: 'get',
    params
  })
}
// 修改
export function updatePurCheck(data) {
  return request({
    url: '/tPurCheckout/updatePurCheck',
    method: 'put',
    data
  })
}
// 责任部门
export function queryUsergroupList(data) {
  return request({
    url: '/tSecUsergroup/queryUsergroupList',
    method: 'post',
    data
  })
}
// 责任人
export function queryTSecUserList(data) {
  return request({
    url: '/tSecUser/queryTSecUserList',
    method: 'post',
    data
  })
}
// 新增
export function insertPurCheck(data) {
  return request({
    url: '/tPurCheckout/insertPurCheck',
    method: 'post',
    data
  })
}
// 生产订单列表
export function queryMoNoList(data) {
  return request({
    url: '/tPrdMo/queryMoNoList',
    method: 'post',
    data
  })
}
// 采购订单列表
export function queryPoorNoderList(data) {
  return request({
    url: '/tPurPoorder/queryPoorNoderList',
    method: 'post',
    data
  })
}
// 品质生产-查询物料列表
export function queryMoList(data) {
  return request({
    url: '/tPrdMo/queryMoList',
    method: 'post',
    data
  })
}
// 品质采购-查询物料列表
export function queryPoorderLists(data) {
  return request({
    url: '/tPurPoorder/queryPoorderLists',
    method: 'post',
    data
  })
}
